#include "AnimationManager.h"
#include "Animation.h"

AnimationManager* AnimationManager::sm_pInstance = nullptr;

AnimationManager::AnimationManager(void)
{

}

AnimationManager* AnimationManager::GetInstance(void)
{
	if(!sm_pInstance)
		sm_pInstance = new AnimationManager;
	return sm_pInstance;
}

void AnimationManager::DeleteInstance(void)
{
	if(sm_pInstance)
	{
		delete sm_pInstance;
		sm_pInstance = nullptr;
	}
}

void AnimationManager::Initialize(void)
{
}

int AnimationManager::LoadAnimation(const char* filename)
{
	CAnimation* anim = new CAnimation;
	anim->Load(filename);

	m_vpAnimations.push_back(anim);
	return m_vpAnimations.size() - 1;
}